TURNS=50
END_WAIT=1
TURNTIME=1000
MYBOT="bin\\mAnts.exe"
MYBOTDIR="mAnts"
BOT1="python ""tools\\sample_bots\\python\\LeftyBot.py"""
BOT2="python ""tools\\sample_bots\\python\\GreedyBot.py"""
BOT3="python ""tools\\sample_bots\\python\\HunterBot.py"""

all: install clean test1

install:
	make install -C $(MYBOTDIR)

clean:
	if [ -d bin ] ; then touch bin\\test.log bin\\test~; rm -f "bin\*.log" "bin\*~"; fi
	touch test.log test~; rm -f *.log *~
	make clean -C $(MYBOTDIR)

realclean: clean
	make realclean -C $(MYBOTDIR)
	if [ -d bin ] ; then rm -r -f bin; fi
	if [ -d game_logs ] ; then rm -r -f game_logs; fi

test: maze_p02_01.map


test1: tutorial1.map

test_nofood:
	python "tools\playgame.py" --engine_seed 42 --player_seed 42 --end_wait=${END_WAIT} --verbose --log_dir game_logs --turns ${TURNS} --map_file "tools\maps\example\tutorial1.map" ""${MYBOT}"" ""${BOT1}"" -e --strict --capture_errors --food none

test_mys:
	python "tools\playgame.py" --engine_seed 42 --player_seed 42 --end_wait=${END_WAIT} --verbose --log_dir game_logs --turns ${TURNS} --map_file "tools\maps\example\tutorial1.map" ""${MYBOT}"" ""${MYBOT}"" -e --strict --capture_errors

test2:
	python "tools\playgame.py" --engine_seed 42 --player_seed 42 --end_wait=${END_WAIT} --verbose --log_dir game_logs --turns ${TURNS} --map_file "tools\maps\maze\maze_02p_02.map" ""${MYBOT}"" ""${BOT1}"" -e --strict --capture_errors

test4:
	python "tools\playgame.py" --engine_seed 42 --player_seed 42 --end_wait=${END_WAIT} --verbose --log_dir game_logs --turns ${TURNS} --map_file "tools\maps\maze\maze_04p_01.map" ""${MYBOT}"" ""${BOT1}"" ""${BOT2}"" ""${BOT3}""

tutorial1.map:
	python "tools\playgame.py" --engine_seed 42 --player_seed 42 --end_wait=${END_WAIT} --verbose --log_dir game_logs --turns ${TURNS} --map_file "tools\maps\example\tutorial1.map" ""${MYBOT}"" ""${BOT1}"" -e --strict --capture_errors

maze_p02_01.map:
	python "tools\playgame.py" --engine_seed 42 --player_seed 42 --end_wait=${END_WAIT} --turntime ${TURNTIME} --verbose --log_dir game_logs --turns ${TURNS} --map_file "tools\maps\maze\maze_p02_01.map" ""${MYBOT}"" ""${BOT1}"" -e --strict --capture_errors

